@extends('admin.layout.main')

@section('title')
    角色列表
@endsection

@section('content')
    <div class="cl pd-5 bg-1 bk-gray"> <span class="l">
            <a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>
            <a class="btn btn-primary radius" href="{{url('admin/roles/create')}}" ><i class="Hui-iconfont">&#xe600;</i> 添加角色</a>
        </span> <span class="r">共有数据：<strong>54</strong> 条</span>
    </div>
    <div class="mt-10">
        <table class="table table-border table-bordered table-hover table-bg">
            <thead>
            <tr>
                <th scope="col" colspan="6">角色管理</th>
            </tr>
            <tr class="text-c">
                <th width="25"><input type="checkbox" value="" name=""></th>
                <th width="40">ID</th>
                <th width="200">角色名</th>
                {{--<th>用户列表</th>--}}
                <th>权限管理</th>
                <th width="300">描述</th>
                <th width="70">操作</th>
            </tr>
            </thead>
            <tbody>
            @foreach($roles as $role)
            <tr class="text-c">
                <td><input type="checkbox" value="" name=""></td>
                <td>{{$role->id}}</td>
                <td>{{$role->name}}</td>
                <td ><a style="color:blue" href="{{url('admin/roles/'.$role->id.'/permission')}}">权限管理</a></td>
                <td>{{$role->description}}</td>
                <td class="f-14"><a title="编辑" href="javascript:;" onclick="admin_role_edit('角色编辑','admin-role-add.html','1')" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> <a title="删除" href="javascript:;" onclick="admin_role_del(this,'1')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
            </tr>
            @endforeach

            </tbody>
        </table>
    </div>


@endsection

